/// polygonList : [[[{"Q":30.671127,"R":103.85768100000001,"longitude":103.857681,"latitude":30.671127},{"Q":30.662858,"R":104.023506,"longitude":104.023506,"latitude":30.662858},{"Q":30.672013,"R":103.96617100000003,"longitude":103.966171,"latitude":30.672013},{"Q":30.746103,"R":103.90505999999999,"longitude":103.90506,"latitude":30.746103},{"Q":30.671127,"R":103.85768100000001,"longitude":103.857681,"latitude":30.671127}],[{"Q":30.711541,"R":103.89685500000002,"longitude":103.896855,"latitude":30.711541},{"Q":30.724085,"R":103.904923,"longitude":103.904923,"latitude":30.724085},{"Q":30.712279,"R":103.91796899999997,"longitude":103.917969,"latitude":30.712279},{"Q":30.711541,"R":103.89685500000002,"longitude":103.896855,"latitude":30.711541}]]]

class PolygonEntity {
  List<List<List<PolygonListBean>>> polygonList;

  static PolygonEntity fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    PolygonEntity polygonEntityBean = PolygonEntity();
    polygonEntityBean.polygonList = List()..addAll(
        (map['polygonList'] as List ?? []).map((o) => List()..addAll((o as List ?? []).map((oo) => List()..addAll((oo as List ?? []).map((ooo) => PolygonListBean.fromMap(ooo))))))
    );
    return polygonEntityBean;
  }

  Map toJson() => {
    "polygonList": polygonList,
  };
}

/// Q : 30.671127
/// R : 103.85768100000001
/// longitude : 103.857681
/// latitude : 30.671127

class PolygonListBean {
  double Q;
  double R;
  double longitude;
  double latitude;

  static PolygonListBean fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    PolygonListBean polygonListBean = PolygonListBean();
    polygonListBean.Q = map['Q'];
    polygonListBean.R = map['R'];
    polygonListBean.longitude = map['longitude'];
    polygonListBean.latitude = map['latitude'];
    return polygonListBean;
  }

  Map toJson() => {
    "Q": Q,
    "R": R,
    "longitude": longitude,
    "latitude": latitude,
  };
}